<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变量</title>
</head>
<body>
<script>
    /**
     * 数组
     */
    var arr= new Array()

    console.log(arr)
    arr[0]="张三"
    arr[1]="李四"
    arr[2]="王五"
    arr[3]="赵六"
    arr[100]="小明"

    console.log(arr)

    //获取数组长度
    console.log(arr.length)
    console.log(arr)

    console.log(arr.length) 




</script>
</body>
</html>
